New render locationsThis script allows the user to select queued items in the Render Queue and assign a new render destination for them. First, we prompt the user for a new folder to use as a render destination. var newLocation = folderGetDialog("Select a render destination..."); Next, we make certain that the user entered a new location (and didn't cancel the dialog). Then we create a loop for each selected render queue item. If this item is queued, we take the current render location, give it a new name and location, and then pop up an alert stating the new file path. if (newLocation) { //boolean to see if the user cancelled for (i = 1; i <= app.project.renderQueue.numItems; ++i) { var curItem = app.project.renderQueue.item(i); if (curItem.status == RQItemStatus.QUEUED) { for (j = 1; j <= curItem.numOutputModules; ++j) { var curOM = curItem.outputModule(j); var oldLocation = curOM.file; curOM.file = new File(newLocation.toString() + "/" + oldLocation.name); alert(curOM.file.fsName); } } } } |